
Pod::Spec.new do |s|
    # ------------------ 组件基本信息段---------------------
  s.name             = 'GeelyLynkcoMain'
  s.version          = '0.1.2'
  s.summary          = '新领克APP主模块.'
  s.description      = <<-DESC
                          新领克APP主模块，主要包含appDelegate、rootViewController、等.
                       DESC
  s.ios.deployment_target = '9.0'

  # 1. Dynamic 动态库、2. Static  静态库、3. Library 三方库封装，如HPR，OpenSSL
  #library_type       = "Static"
  s.static_framework = true

  s.author           = { '_coCo_' => 'Shuaishuai.Zhu@geely.com' }
  s.homepage         = 'http://git.evun.cn/LYNKCO-APP/iOS-GeelyLynkcoMain.git'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  


#if ENV['mode'].to_s.include? "GeelyLynkcoMain"
    #使用zip成果物模式
    puts "GeelyLynkcoMain成果物模式集成".blue
    s.source           = { :http => 'https://geely-admp-oss.oss-cn-hangzhou.aliyuncs.com/sweet-app-release/ios/GeelyLynkcoMain.framework-0.1.2.zip' }
    s.ios.vendored_framework   = 'GeelyLynkcoMain.framework'
    s.source_files = 'GeelyLynkcoMain.framework/**/*.h'
    s.public_header_files = 'GeelyLynkcoMain.framework/**/*.h'
    s.prefix_header_file = 'GeelyLynkcoMain.framework/**/GLLynkCoStr.h'
#else
#    #目前默认源码集成
#    puts "GeelyLynkcoMain源码模式集成".yellow
#    s.source           = { :git => 'https://gitlab.geely.com/p-internet-marketing/lynkco-app/ios-geelylynkcomain.git', :tag => s.version.to_s }
#    s.source_files = 'GeelyLynkcoMain/Classes/Main/**/*.{h,m,mm,pch}'
#    #s.public_header_files = 'GeelyLynkcoMain/Classes/**/*.h'
#
#    s.prefix_header_file = 'GeelyLynkcoMain/Classes/Main/Macro/GLLynkCoStr.h'
#
#    s.ios.resources = [
#          'GeelyLynkcoMain/Classes/**/*.{storyboard,xib,plist,xcassets,lproj,bundle,js,txt,png,ttf,gif,jpg,mp3,mp4,xml,rtf,svg,emo,xml}',           #资源文件
#          'GeelyLynkcoMain/Assets/files/**/*.{storyboard,xib,plist,xcassets,lproj,bundle,js,txt,png,ttf,gif,jpg,mp3,mp4,xml,rtf,svg,emo,xml}',
#          'GeelyLynkcoMain/Assets/bundles/*.{bundle}',#资源文件
#          'GeelyLynkcoMain/Assets/*.xml'
#      ]
#end
  # ------------------ 组件资源---------------------
  
  s.ios.frameworks = 'UIKit','Foundation'
  s.libraries = 'xml2', 'z', 'sqlite3', 'c', 'resolv', 'iconv', 'c++', 'bz2'

  # ------------------ 组件依赖---------------------
  s.dependency 'SweetCoreKit', '~> 0.1.9'
  s.dependency 'IconFont'
  s.dependency 'SWAliGatewayKit'
  s.dependency 'Bugly'
  s.dependency 'GeelyLynkcoCore'
  s.dependency 'SVProgressHUD'
  s.dependency 'AlicloudPush'
  s.dependency 'JPush'
  s.dependency 'MBProgressHUD'
  s.dependency 'SocketRocket'
  s.dependency 'HybridImplementKit'
  s.dependency 'GLLogSDK'

  
  #------------------ 组件info配置 --------------------------
  s.pod_target_xcconfig  = {
   'FRAMEWORK_SEARCH_PATHS'        => '$(inherited) ${PODS_ROOT}/**',
   'LIBRARY_SEARCH_PATHS'          => '$(inherited) ${PODS_ROOT}/**',
   'ENABLE_BITCODE'                => 'NO',
   'OTHER_LDFLAGS'                 => '$(inherited) -ObjC',
   'STRINGS_FILE_OUTPUT_ENCODING'  => 'UTF-8',
   'ONLY_ACTIVE_ARCH'              => 'NO',
   'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
   'VALID_ARCHS'                   => 'armv7 arm64 x86_64'
  }

  

end

